<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>


<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>网元型号配置</title>
	<link href="<s:url value="/"/>resources/css/nm.css" rel="stylesheet" />
	<style>
	<!--
	.operation{
		width: 100px;
	}
	-->
	</style>
	<script src="<s:url value="/"/>resources/js/nm.js"></script>
</head>
<body>
	<div class="container-fluid devModelView">
		<div class="row-fluid full-height">
			<form:form id="queryForm" cssClass="devModelConditionForm form-inline" modelAttribute="condition">
				<form:label cssClass="control-label" for="typeId" path="typeId" >网元类型:</form:label>
				<form:select id="typeId" path="typeId" cssClass="input-medium">
					<form:option value="">请选择</form:option>
					<c:forEach var="item" items="${neTypeList}">
						<form:option value="${item.dictItemCode}">${item.dictItemName}</form:option>
					</c:forEach>
				</form:select>
			
				<form:label cssClass="control-label controls-row" for="modelName" path="modelName" >网元型号:</form:label>
				<form:input id="modelName" path="modelName" cssClass="input-medium"/>
			
				<input id="queryBtn" type="button" class="btn btn-primary" onclick="if(queryDevModel()==false) return false;" value="查询"/>
				<input type="reset" class="btn" value="重置"/>
			</form:form>
			<div style="margin-left: 10px;">
				<input type="button" class="btn btn-primary" style="width:100px;" value="新增" onclick="createDevModel()"/>
			</div>
			<div id="devModelContainer"/>
		</div>
	</div>
	<div id="operation" style="display: none;">
		<img alt="配置模板" style="cursor: pointer;" onclick="configDevTemplate('param:modelId','param:modelName')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/setting.jpg"/>
		<img alt="编辑" style="cursor: pointer;" onclick="update('param:modelId')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/edit.png"/>	
		<img alt="删除" style="cursor: pointer;" onclick="deleteDevModel('param:modelId','param:modelName')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/delete.png"/>		
	</div>
	<div id="operationForDevTemplate" style="display: none;">
		<img alt="编辑" style="cursor: pointer;" onclick="updateDevTemplate('param:templateId')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/edit.png"/>	
		<img alt="删除" style="cursor: pointer;" onclick="deleteDevTemplate('param:templateId','param:name')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/delete.png"/>		
	</div>
</body>
</html>
